<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
        开始数据
        {id:1,name:'张'},
        {id:2,name:'李'}
        开始虚拟DOM
        <li key=0>张</li>
        <li key=1>李</li>
        更新后的数据
        {id:3,name:'王'},
        {id:1,name:'张'},
        {id:2,name:'李'}
        更新后的虚拟DOM
        <li key=0>王</li>
        <li key=1>张</li>
        <li key=2>李</li>
        */
    </script>
</body>
</html>